{% extends "objects/base.html" %}

{% block title %}МПМ Былины. Доски: {{ title }}{% endblock %}

{% block menu %}
{% include "objects/menu.html" %}
{% endblock %}


{% block content %}

<h2>Доски -- {{ title }}:</h2>

<div class="pagination">
    <span class="step-links">
        {% if messages.has_previous %}
            <a href="?page={{ messages.previous_page_number }}"><<</a>
        {% endif %}

        <span class="current">
            {{ messages.number }} из {{ messages.paginator.num_pages }}
        </span>

        {% if messages.has_next %}
            <a href="?page={{ messages.next_page_number }}">>></a>
        {% endif %}
    </span>
</div>

<hr/>
{% for m in messages %}
{% include "boards/message.html" %}
<hr/>
{% endfor %}

<div class="pagination">
    <span class="step-links">
        {% if messages.has_previous %}
            <a href="?page={{ messages.previous_page_number }}"><<</a>
        {% endif %}

        <span class="current">
            {{ messages.number }} из {{ messages.paginator.num_pages }}
        </span>

        {% if messages.has_next %}
            <a href="?page={{ messages.next_page_number }}">>></a>
        {% endif %}
    </span>
</div>

{% endblock %}